# you want build arm, run source env.sh arm

# 本工程顶层目录
ROOTDIR=$PWD

# 编译器前缀
OSDRV_CROSS=

# 构架
OSDRV_ARCH=

if [ $# == 0 ]; then
	echo "no args" 
	# 如果没有参考就认为是x86
	OSDRV_CROSS=
	OSDRV_ARCH=x86
	echo $(OSDRV_ARCH)" set ok"
elif [ $# == 1 ]; then
	if [ $1 == "x86" ]; then
		echo "x86"
		OSDRV_CROSS=
		OSDRV_ARCH=x86
		echo "x86 set ok"
	elif [ $1 == "arm-hisiv300" ]; then
		OSDRV_CROSS=arm-hisiv300-linux-
		OSDRV_ARCH=arm-hisiv300
		echo "arm-hisiv300 set ok"
	elif [ $1 == "arm-hisiv400" ]; then
		OSDRV_CROSS=arm-hisiv400-linux-
		OSDRV_ARCH=arm-hisiv400
		echo "arm-hisiv400 set ok"
	else
		echo "error args arch"
	fi
else
	echo "error args"
fi



export ROOTDIR
export OSDRV_CROSS
export OSDRV_ARCH
